#include <QtCore/QCoreApplication>
#include "Log.h"
#include <stdio.h>
#include "sconfig.h"
#include <QDebug>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>






int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);

    /*
    log = new Logger("znjz",MONTHLY_LOG,LOG_DEBUG);
    if(log==NULL)
    {
        printf("new logger failed\n");
        return 1;
    }

    log->Log("HTTP",LOG_WARN,"Start process,current log level is %d\n");
    log->Log("HTTP",LOG_WARN,"Start process,current log level is %d\n");
    log->Log("HTTP",LOG_WARN,"Start process,current log level is %d\n");
    */




    SConfig sc;

    sc.ParseFile("/etc/sysctl.conf");
    int val;
    float val1;
    char val2[100];

    sc.GetConfigInt("kernel.shmall",val);
    sc.GetConfigFloat("kernel.msgmax",val1);
    sc.GetConfigString("kernel.shmmax",val2);
    cout<<val<<endl;
    cout<<val1<<endl;
    cout<<val2<<endl;











    return a.exec();
}
